<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../core/include.inc.jsp"%>

<form id="pagerForm" method="post" action="role_list">
    <input type="hidden" name="pageNum" value="${pageModel.pageNum}" />
    <input type="hidden" name="numPerPage" value="${pageModel.numPerPage}" />
    <input type="hidden" name="roleName" value="${role.roleName}" />
</form>

<form onsubmit="return navTabSearch(this);" action="role_list" method="post">
<div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>身份名称</label>
                    <input type="text" name="roleName" value="${role.roleName}" class="textInput" />
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                </ul>
            </div>
        </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="to_role_add" target="dialog" rel="to_role_add"
                   width="600" height="600" mask="true"><span>添加身份</span></a></li>
            <li class="line">line</li>
            <li><a class="edit" href="to_role_edit?id={item_id}" target="dialog" rel="to_role_edit"
                   width="600" height="600" mask="true"><span>修改身份</span></a></li>
            <li class="line">line</li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="137">
        <thead>
        <tr>
            <th>序号</th>
            <th>身份名称</th>
            <th>备注</th>
        </tr>
        </thead>
        <tbody>
            <c:forEach var="item" items="${list}" varStatus="st">
                <tr target="item_id" rel="${item.id}" ondblclick="tableclick()">
                    <td>${st.index+1}</td>
                    <td>${item.roleName}</td>
                    <td></td>
                </tr>
            </c:forEach>
        </tbody>
    </table>

    <c:import url="../core/pagebar.inc.jsp" />

</div>
</form>

<%--<a href="detail_user?id={id}" rel="detail_user" target="navTab" id="list_detail" title="详细信息"></a>--%>

<script type="text/javascript">

    // 点击列表栏位
    function tableclick() {
        // $("#list_detail").click();
    }

</script>


